Skip to content

Delete objects versions and incomplete multipart uploads - #174

Merged
paulineribeyre merged 36 commits into
masterfrom
delete-objects-versions
Jul 30, 2026
Merged

Delete objects versions and incomplete multipart uploads#174
paulineribeyre merged 36 commits into
masterfrom
delete-objects-versions

Conversation

@paulineribeyre

Copy link
Copy Markdown
Collaborator

Link to JIRA ticket if there is one:

New Features

Breaking Changes

Bug Fixes

Improvements

  • Update the DELETE /storage/user-bucket and DELETE /storage/user-bucket/objects endpoints to support deleting versions and incomplete multipart uploads

Dependency updates

Deployment changes

@paulineribeyre
paulineribeyre requested a review from nss10 July 29, 2026 15:57
@github-actions

Copy link
Copy Markdown

The style in this PR agrees with black. ✔️

This formatting comment was generated automatically by a script in uc-cdis/wool.

@github-actions

Copy link
Copy Markdown

Integration Tests on Kind

filepath error skipped SUBTOTAL
tests/test_gen3_workflow.py 25 4 29
TOTAL 25 4 29

@github-actions

Copy link
Copy Markdown

Integration Tests

Failed to Prepare CI environment

Please find the Github Action logs here

@nss10 nss10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few super minor comments, and this PR should be good to go.
Also, wondering why does the diff still show 11 files changed, I've made some updates to feat/s3Files that are not reflected in here. Maybe need to take a fresh pull from feat/s3Files?

Comment thread gen3workflow/aws/bucket.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not defaulting to False anymore!

Comment thread tests/test_misc.py Outdated
Enable S3Files for the duration of the test, and reset the `ENABLE_S3_FILES` configuration
at the end of the test
"""
original_hostname = config["ENABLE_S3_FILES"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean something like original_value instead of original_hostname?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes haha copy/paste leftover

Base automatically changed from feat/s3Files to master July 30, 2026 18:05
@coveralls

coveralls commented Jul 30, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 30587100242

Coverage increased (+0.8%) to 85.179%

Details

  • Coverage increased (+0.8%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 44 coverage regressions across 4 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

44 previously-covered lines in 4 files lost coverage.

File Lines Losing Coverage Coverage
aws/bucket.py 30 79.35%
routes/storage.py 7 88.33%
config.py 5 77.78%
aws/s3_files.py 2 98.31%

Coverage Stats

Coverage Status
Relevant Lines: 1147
Covered Lines: 977
Line Coverage: 85.18%
Coverage Strength: 0.85 hits per line

💛 - Coveralls

@github-actions

Copy link
Copy Markdown

Integration Tests

filepath error skipped SUBTOTAL
tests/test_gen3_workflow.py 28 1 29
TOTAL 28 1 29

Please find the detailed integration test report here

Please find the Github Action logs here

@github-actions

Copy link
Copy Markdown

Integration Tests on Kind

filepath passed skipped SUBTOTAL
tests/test_gen3_workflow.py 25 4 29
TOTAL 25 4 29

@github-actions

Copy link
Copy Markdown

Integration Tests

filepath error skipped SUBTOTAL
tests/test_gen3_workflow.py 28 1 29
TOTAL 28 1 29

Please find the detailed integration test report here

Please find the Github Action logs here

@uc-cdis uc-cdis deleted a comment from github-actions Bot Jul 30, 2026
@uc-cdis uc-cdis deleted a comment from github-actions Bot Jul 30, 2026
@uc-cdis uc-cdis deleted a comment from github-actions Bot Jul 30, 2026
@nss10
nss10 self-requested a review July 30, 2026 22:06
nss10
nss10 previously approved these changes Jul 30, 2026
Comment thread gen3workflow/routes/storage.py Outdated
if config["ENABLE_S3_FILES"]:

# Bucket versioning is necessary for S3Files
enable_bucket_versioning(bucket_name)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, there seems to be a redundancy -- I have moved the bucket versioning logic to

if config["ENABLE_S3_FILES"]:
# Bucket versioning is necessary for S3Files
enable_bucket_versioning(user_bucket_name)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uh oh, bad merge, let me check that

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@github-actions

Copy link
Copy Markdown

Integration Tests

filepath passed skipped SUBTOTAL
tests/test_gen3_workflow.py 28 1 29
TOTAL 28 1 29

Please find the detailed integration test report here

Please find the Github Action logs here

@paulineribeyre
paulineribeyre merged commit 33e94f0 into master Jul 30, 2026
10 of 12 checks passed
@paulineribeyre
paulineribeyre deleted the delete-objects-versions branch July 30, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants